/* 
 * File:   Pattern.h
 * Author: wx
 *
 * Created on 2009年12月20日, 下午9:38
 */

#ifndef _PATTERN_H
#define	_PATTERN_H

#include <set>
using namespace std;

class Pattern
{
private:
    set<int> patternset;
    int count;
public:
    Pattern()
    {
        count = 0;
    }

    Pattern(set<int> & s)
    {
        patternset = s;
    }

    Pattern(set<int> & s1,set<int> & s2)
    {
        patternset.insert(s1.begin(),s1.end());
        patternset.insert(s2.begin(),s2.end());
    }

    int getCount()
    {
        return count;
    }

    void setCount(int c)
    {
        count = c;
    }

    void addPattern(int i)
    {
        patternset.insert(i);
    }
};


#endif	/* _PATTERN_H */

